<div class="manageInfo">
    <div class="header">
        <h4 class="title">用户{{types[type]}}</h4>
    </div>
    <form class="form-horizontal" ng-submit="saveManageInfo()" id="manageForm">
        <div class="form-group">
            <label for="phone" class="col-lg-4 col-md-4 control-label">手机号</label>
            <div class="col-lg-6 col-md-8">
                <input id="phone" type="text" title="请输入正确的手机号" pattern="1[\d]{10}" ng-model="manageInfo.phone" ng-disabled="type == 'view'" class="form-control" autofocus required tabindex="1"/>
            </div>
        </div>
        <div class="form-group" ng-if="type == 'create'">
            <label for="password" class="col-lg-4 col-md-4 control-label">密码</label>
            <div class="col-lg-6 col-md-8">
                <input id="password" type="password" class="form-control" placeholder="请输入密码" ng-model="manageInfo.password" required>
            </div>
        </div>
        <div class="form-group" ng-if="type == 'create'">
            <label for="secondPassword" class="col-lg-4 col-md-4 control-label">重复密码</label>
            <div class="col-lg-6 col-md-8">
                <input id="secondPassword" type="password" class="form-control" placeholder="请再输入一次" ng-model="manageInfo.secondPassword" required>
            </div>
        </div>
        <div class="form-group">
            <label for="manageName" class="col-lg-4 col-md-4 control-label">姓名</label>
            <div class="col-lg-6 col-md-8">
                <input id="manageName" type="text" ng-disabled="type == 'view'" class="form-control" placeholder="请输入姓名" ng-model="manageInfo.manageName" required>
            </div>
        </div>
        <div class="form-group">
            <label for="nickName" class="col-lg-4 col-md-4 control-label">昵称</label>
            <div class="col-lg-6 col-md-8">
                <input id="nickName" type="text" ng-disabled="type == 'view'" class="form-control" placeholder="请输入昵称" ng-model="manageInfo.nickName" required>
            </div>
        </div>
        <div class="form-group">
            <label for="browses" class="col-lg-4 col-md-4 control-label">权限</label>
            <div class="col-lg-6 col-md-8">
                <label class="checkbox-inline" ng-repeat="(key,item) in roleDict">
                    <input type="checkbox" id="inlineCheckbox1" value="{{key}}" ng-click="addRole(key,item,$event)" ng-checked="item.checked" ng-disabled="type == 'view'"> {{item.text}}
                </label>
            </div>
        </div>
    </form>
    <div class="group">
        <input type="submit" value="提交" class="btn" form="manageForm" ng-if="type != 'view'"/>
        <a href="" class="btn" ng-click="goBack()">返回</a>
    </div>
</div>